package com.company.cloud.product.modules.api.request;

import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProductStockMultipleSkuItem {

	
    @ApiModelProperty(value = "SKU商品号" ,required = true)
    @NotEmpty(message = "#SKU商品号不能为空")
    private String skuNo;
  
    @ApiModelProperty(value = "库存数量",required = true)
    @NotNull(message = "#库存数量不能为空")
    @Min(message = "#最小库存数量1",value = 1)
    @Max(message = "#最大库存数量9999999",value = 9999999)
    private BigDecimal num;
    
    public ProductStockMultipleSkuItem(String skuNo,BigDecimal num) {
    	this.skuNo=skuNo;
    	this.num=num;
    }
    
    public ProductStockMultipleSkuItem(String skuNo,Integer num) {
    	this.skuNo=skuNo;
    	this.num=new BigDecimal(num);
    }
    
    public ProductStockMultipleSkuItem() {
    	
    }
    
}
